package top.jiangqiang.qyblog.core.domain;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import top.jiangqiang.qyblog.core.base.entity.BaseEntity;

import java.io.Serial;
import java.util.List;

/**
 * <p>
 * 博客配置
 * </p>
 *
 * @author JiangQiang
 * @since 2023-01-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@Schema(name = "博客配置", description = "博客完整配置")
public class BlogConfig extends BaseEntity {
    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "网站访问地址，网站最终的访问域名")
    private String baseUrl;

    @Schema(description = "网站一级标题")
    private String firstTitle;

    @Schema(description = "网站二级标题")
    private String secondTitle;

    @Schema(description = "静态资源路径地址，使用模板引擎之类的服务端渲染时需要配置")
    private String staticUrl;

    @Schema(description = "开启安全模式 会临时关闭某些功能（评论，广告），建议网站备案时开启")
    private Boolean safeMode;

    @Schema(description = "全局header")
    private String globalHeader;

    @Schema(description = "全局footer")
    private String globalFooter;

    @Schema(description = "文章详情页header")
    private String articleHeader;

    @Schema(description = "文章详情页footer")
    private String articleFooter;

    @Schema(description = "轮播数据")
    private List<PictureTextLink> banner;

    @Schema(description = "通知栏数据")
    private List<PictureTextLink> announcement;

    @Schema(description = "广告栏数据")
    private List<PictureTextLink> advertisement;
}
